package com.gaojunxiang.dao;

import com.gaojunxiang.domain.User;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;


import java.util.List;

//持久层接口CRUD
@Repository
public interface UserDao {
    public boolean save(User user);
    //删
    public boolean delete(Integer uid);
    //改
    public boolean update(User user);
    //分页查
    public List<User> findAllUser();
    //根据id查找用户
    public User findById(Integer id);
}
